@import "header.html"
<link rel="stylesheet" href="../css/comment_list.css">
<body>
<header class="fxj-header">
    <back></back>
    <h1 class="fxj-title">评论列表</h1>
</header>
<main id="main">
    <section class="house-comment" v-for="comment of list" v-cloak @click="showCommentDetail(comment.id)">
        <div class="row">
            <div class="star">
                <svg class="icon" :class="{'icon-star':i<comment.star}" v-for="(v,i) of 5">
                    <use v-if="i < comment.star" xlink:href="#icon-star"></use>
                    <use v-else xlink:href="#icon-star-o"></use>
                </svg>
            </div>

        </div>

        <div class="user-info">
            <img :src="comment.img" alt="">
            <div>
                <div class="username">{{comment.userName}}</div>
                <p>发表于{{comment.date}}</p>
            </div>
        </div>

        <div class="user-comment">
            {{comment.content}}
        </div>
    </section>

</main>

@import "js.html"
<script src="../script/comment_list.js"></script>
</body>
@import "footer.html"